
# The following MUST be at the top of every Makefile.
TOPDIR ?= ..
include $(TOPDIR)/tools/Makefile.pre

# Modify MODULES to be the list of all modules which must be done
# first before this one (comment out if none).
# Be sure to refer to modules by their regular absolute path name,
# e.g. $(TOPDIR)/foo
# PLEASE KEEP ALPHABETICAL
MODULES +=                      \
    $(TOPDIR)/audiohw           \
    $(TOPDIR)/auflash           \
    $(TOPDIR)/aumix             \
    $(TOPDIR)/auplay            \
    $(TOPDIR)/callCtrl          \
    $(TOPDIR)/config            \
    $(TOPDIR)/dateTime          \
    $(TOPDIR)/debug             \
    $(TOPDIR)/debuglog          \
    $(TOPDIR)/display           \
    $(TOPDIR)/echocancel        \
    $(TOPDIR)/fdb               \
    $(TOPDIR)/flashapp          \
    $(TOPDIR)/gtalk             \
    $(TOPDIR)/httpd             \
    $(TOPDIR)/hw                \
    $(TOPDIR)/hwReg             \
    $(TOPDIR)/lang              \
    $(TOPDIR)/mainthread        \
    $(TOPDIR)/nethw             \
    $(TOPDIR)/netwk             \
    $(TOPDIR)/poller            \
    $(TOPDIR)/power             \
    $(TOPDIR)/pwin              \
    $(TOPDIR)/simpleconfig      \
    $(TOPDIR)/spr               \
    $(TOPDIR)/unicode           \
    $(TOPDIR)/wlanScan          \
    $(TOPDIR)/wlanProfile       \
    $(TOPDIR)/zcomlog           \
    $(TOPDIR)/callHistory       \
    $(TOPDIR)/phonebook         \
    $(TOPDIR)/IMManager		\
    $(TOPDIR)/NetworkManagement \
    $(TOPDIR)/speeddial         \
    $(TOPDIR)/autoProvision

# The following will do make in all subdirectories with a Makefile first.
#       Comment this out if you do not want or need this.
### $(foreach modmakefile,$(wildcard $(MODDIR)/*/Makefile),$(eval MODULES += $(patsubst %/,%,$(dir $(modmakefile)))))


# Modify LIBNAMES to be list of all names of libraries to create
# (comment out if none).
# The names of libraries do NOT include .a extension in this case.
# All libraries created are automatically exported.
#was: LIBNAMES :=  ui
$(eval $(foreach target,$(HANDSET_TARGETS),$(eval LIBNAMES_$(target) := ui)))

# For each library name, provide LIB_SRC_<name> giving source files
# The names of libraries do NOT include .a extension in this case.
# PLEASE KEEP ALPHABETICAL
LIBRARY_SRC_ui :=                       \
            uiClock.c                   \
            uiFirmware.c                \
            uiGtalk.c                   \
            uiHttpd.c                   \
            uiInit.c                    \
            uiKey.c                     \
            uiMainWin.c                 \
            uiMenu.c                    \
            uiMenuDef.c                 \
            uiMelodySelect.c            \
            uiNetworkSetup.c            \
            uiPlay.c                    \
            uiPower.c                   \
            uiRecordingSelect.c         \
            uiRecordVoice.c             \
            uiRemoteAccess.c            \
            uiTelephoneTone.c           \
            uiWlanProfile.c             \
            uiText.c                    \
            uiTestMain.c                \
            uiTestLCD.c                 \
            uiTestKeypad.c              \
            uiTestVibrate.c             \
            uiTestSpeaker.c             \
            uiTestReceiver.c            \
            uiTestMicrophone.c          \
            uiTestLED.c                 \
            uiTestWLAN.c                \
            zcom_uiProfiles.c           \
            zcom_uiPhoneSetting.c       \
            zcom_uiWlanScan.c           \
            zcom_uiWlanSimleConfig.c    \
            zcom_uiLogoScreen.c         \
            zcom_uiAutoAnswer.c         \
            zcom_uiPingTest.c           \
            zcom_uiCodecOrder.c         \
            zcom_uiP2PEntry.c           \
            zcom_uiInformation.c        \
            zcom_uiCallSetting.c        \
            zcom_uiModelCapability.c    \
            zcom_uiAutoProvisionSetting.c       \
            zcom_uiInputMethodCustomDefine.c    \
            zcom_uiKeypadLockStyleCustomDefine.c \
            zcom_uiFlashTest.c                  \
            zcom_uiProvisionWlanProfile.c       \
            zcom_uiProvisionSIPProfile.c	\
            zcom_uiTextDialog.c		\
			zcom_uiIMMain.c	\
			zcom_uiIMWrite.c	\
			zcom_uiIMInbox.c	\
			zcom_uiIMDraft.c	\
			zcom_uiIMClear.c	\
			zcom_uiIMMemory.c	\


# For each library name, provide LIB_LIBS_<name> giving other library files
# that should be linked into a program to support this library.
# The names of libraries do NOT include .a extension in this case.
# PLEASE KEEP ALPHABETICAL
LIBRARY_LIBS_ui :=      \
        audiohw         \
        auflash         \
        aumix           \
        auplay          \
        callCtrl        \
        dateTime        \
        debuglog        \
        echocancel      \
        flashapp        \
        gtalk           \
        lang            \
        pwin            \
        power           \
        netwk           \
        spr             \
        simpleconfig    \
        wlanScan        \
        wlanProfile     \
        zcomlog         \
        callHistory     \
        phonebook       \
        IMManager	\
        NetworkManagement   \
        speeddial           \
        autoProvision

# List all header files to be exported (installed in other modules)
# (comment out if none).
EXPORT_HEADERS += ui.h      \
                  zcom_uiPhoneSetting.h  \
                  zcom_uiAutoProvisionSetting.h  \
                  zcom_uiModelCapability.h  \
                  zcom_uiGtalk.h \

# Modify PROGRAMS to be list of all names of programs to create
# (comment out if none).
# All programs created are automatically exported.
## PROGRAMS :=

# For each program name, provide PROGRAM_SRC_<name> giving source files
# and provide PROGRAM_LIBS_<name> giving library names (no -l or .a !).
## PROGRAM_SRC_exampleTest := \
##     exampleTest.c

# For each program name, provide PROGRAM_LIBS_<name> giving
# library files required by name and with NO .a extension.
## PROGRAM_LIBS_exampleTest := \
##     example

# The following MUST be at the end of every Makefile
include $(TOPDIR)/tools/Makefile.post
